package com.xunyu.shopping_admin_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinyu.shopping_common.entity.Admin;
import com.xinyu.shopping_common.entity.Permission;

import java.util.List;

public interface AdminMapper extends BaseMapper<Admin> {

    Admin findById(Long aid);

    // 根据管理员名查询权限
    List<Permission> findAllPermission(String username);
}
